// 中转仓库
import request from "@/utils/https/requests";
// 列表
export function centralWarehouseList(data: any) {
  return request({
    url: "/centralWarehouse/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddCentralWarehouse(data: any) {
  return request({
    url: "/centralWarehouse/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModCentralWarehouse(data: any) {
  return request({
    url: `/centralWarehouse/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function centralWarehouseDetail(id: string) {
  return request({
    url: `/centralWarehouse/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteCentralWarehouse(id: string) {
  return request({
    url: `/centralWarehouse/postDelete/${id}`,
    method: "post",
  });
}
